#ifndef AnimateWindowPath_H
#define AnimateWindowPath_H

#include <QDialog>

class AnimateWindowPath: public QDialog
{
    Q_OBJECT
public:    
    AnimateWindowPath();
    virtual ~AnimateWindowPath();

    void addTrailPoint(const QPoint &point);

public slots:
    void setRadiusColor( int valueRadius, QColor valueColor );
    void setOpacity( double value );
    void setRadiant( bool value );

protected:
    void paintEvent(QPaintEvent *) override;

private:
    int diameter;
    QColor color;
    double opacity;
    bool radiant;

    static const int maxTrailLength = 50;
    QList<QPoint> trailPoints;

};

#endif // AnimateWindowPath_H
